package com.gitee.leijin.rbac.entity;


import cn.hutool.core.convert.Convert;
import com.gitee.leijin.rbac.model.SysUserDTO;
import com.gitee.leijin.rbac.util.ConvertUtils;
import lombok.Data;

import java.sql.SQLOutput;

@Data
public class User {

    private Integer uid;

    private String uname;

    public static void main(String[] args) {
        SysUser sysUser=new SysUser();
        sysUser.setUserId(111111113L);
        sysUser.setUserName("ZHANGSAN张三");
        System.out.println(sysUser);
        SysUserDTO sysUserDTO = ConvertUtils.convert(sysUser, SysUserDTO.class);
        System.out.println(sysUserDTO);

    }

}
